﻿/*using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace PMC.States
{
    [Obsolete("Please use DLL's")]
    class SkipMessageState : State
    {
        public SkipMessageState(Wbrowser webbrowser) : base(webbrowser)
        {
        }

        public override void DoAction()
        {
            string[] LoginAvailableAtt = new String[] { "type", "name" };
            string[] LoginAvailableEq = new String[] { "radio", "option" };

            HtmlElement SelectOption = FindElement("input", LoginAvailableAtt, LoginAvailableEq, true);

            LoginAvailableAtt = new String[] { "type", "name" };
            LoginAvailableEq = new String[] { "submit", "submit" };

            HtmlElement SelectSubmit = FindElement("input", LoginAvailableAtt, LoginAvailableEq, true);

            if (SelectOption == null || SelectSubmit == null)
            {
                LeaveState();
                return;
            }

            SelectOption.InvokeMember("click");
            SelectSubmit.InvokeMember("click");
            LeaveState();
        }

        private void LeaveState()
        {
            WebBrowser.Transition(WebBrowser.NormalState);
        }
    }
}
*/